package com.lhd.action.state;

/**
 * @Author: liuhd
 * @Date: 2024/12/17 21:19
 * @Description:
 */
public class CloseState extends LiftState {
    @Override
    public void open() {
        context.setLiftState(new OpenState());
        context.open();
    }

    @Override
    public void close() {
        System.out.println("电梯门关闭");
    }

    @Override
    public void run() {
        context.setLiftState(new RunState());
        context.run();
    }

    @Override
    public void stop() {

    }
}
